﻿		<div id="content">
			<div class="topic_list rounded">
				<div class="header rounded">
					<div class="title">หัวเรื่อง</div>
					<div class="poster">โดย</div>
					<div class="views">ตอบ / ดู</div>
					<div class="last_post">โพสล่าสุด</div>
				</div>
				<div class="body rounded">
			{if !empty($topics)}
				{foreach from=$topics item=t}				
					<div class="list">
						<div class="title"><img src="{$APP_URL}/images/icons/topic/{$t.topic_icon}.png" align="top" /><a href="{$APP_URL}/topic/{$t.topic_id}" title="{$t.topic_title_raw}">{$t.topic_title}</a></div>
						<div class="poster"><a href="{$APP_URL}/user/{$t.topic_poster}" title="ดูโปรไฟล์ของ {$t.realname}">{$t.realname}</a></div>
						<div class="views">{$t.posts_count} / {$t.topic_view}</div>
						<div class="last_post">{$t.topic_time}</div>	
					</div>
				{/foreach}
			{/if}					
				</div>
			</div>
			
			<div id="paginations">
			{if $pages.prev}
				<a href="{$APP_URL}/page/{$pages.prev}">ก่อนหน้า</a>
			{else}
				<span class="disabled">ก่อนหน้า</span>
			{/if}
				<span class="disabled">{$pages.current}/{$pages.total}</span>
			{if $pages.next}
				<a href="{$APP_URL}/page/{$pages.next}">ถัดไป</a>
			{else}
				<span class="disabled">ถัดไป</span>
			{/if}
			</div>
			
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->